@<template>
  <el-row>
    <el-col :span="8" >
      <el-input :placeholder=searchText class="input-with-select">
        <el-button slot="append" icon="el-icon-search"></el-button>
      </el-input>
    </el-col>
    <el-col :span="3">
      <el-button class="search-button" type="primary">{{buttonText}}</el-button>
    </el-col>
  </el-row>
</template>

<script>
export default {
  props:{
    searchText:{
      type: String,
      default: "请输入内容"
    },
    buttonText: {
      type: String, 
      default: "添加用户"
    }
  }
};
</script>

<style lang="less" scoped>
.search-button {
  margin-left: 10px;
}

</style>>
